package com.acme.bankapp.domine.bank;

public class Bank {
    private int countClients;
    private static final int MAX_COUNT_CLIENTS = 10;
    private Client[] clients;

    public int getCountClients() {
        return countClients;
    }

    public Bank() {
        clients = new Client[MAX_COUNT_CLIENTS];
    }

    public Client[] getClients() {
        return clients;
    }

    public void addClient(final Client client) {
        if (countClients < MAX_COUNT_CLIENTS) {
            clients[countClients++] = client;
        } else {
            System.out.println("Storage of clients filled completely");
        }
    }
}
